﻿// ***********************************************************************
// Assembly         : STX.Service
// Author           : seven.x
// Created          : 12-26-2013
//
// Last Modified By : seven.x
// Last Modified On : 12-27-2013
// ***********************************************************************
// <copyright file="IValidExpression.cs" company="驰创数码">
//     Copyright (c) 驰创数码. All rights reserved.
// </copyright>
// <summary></summary>
// ***********************************************************************

namespace STX.Service.Valid
{
    /// <summary>
    /// Interface IValidExpression
    /// </summary>
    /// <typeparam name="TEntity">The type of the attribute entity.</typeparam>
    public interface IValidExpression<TEntity>
        where TEntity:Domain.BaseEntity
    {
        /// <summary>
        /// Valid the specified entity.
        /// </summary>
        /// <param name="entity">The entity.</param>
        /// <returns>ValidationResult.</returns>
        ValidationResult Valid(TEntity entity);
    }
}
